package com.mypackage.diary.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@PreAuthorize("hasRole('ROLE_USER')")
public class IndexController
{
    @RequestMapping( value = "/index", method = RequestMethod.GET )
    public String index()
    {
        return "index";
    }
}